package cn.stylefeng.guns.modular.manage.service;

import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.manage.mapper.MyOrderMapper;
import cn.stylefeng.guns.modular.manage.model.MyOrder;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author (作者):mf-mazhenyu
 * @version (版本信息)： Copyright 2013 版权所有
 * @company：美福科技
 * @package cn.stylefeng.guns.modular.manage.order.service
 * @title 文件名：OrderService
 * @date 日期：2019/7/15 12:53
 */
@Service
public class OrderService extends ServiceImpl<MyOrderMapper, MyOrder> {

    @Resource
    private MyOrderMapper myOrderMapper;

    public Page<Map<String, Object>> list(String condition) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.list(page, condition);
    }
}
